Image Data Processing And Arrangements Therefor

ABSTRACT

Image data processing is facilitated. According to an example embodiment, image data is processed using photometric similarity and, where appropriate, a classification of sample pixels for the image data. In some applications, a trained bilateral filter function is used with a filter coefficient selected for a particular classification of image data to filter artifacts in the image data.

The present invention relates generally to image applications and, more particularly, to processing pixel data.

Bilateral filtering is a simple and non-linear technique to remove image noise while preserving edges. Generally, as a non-iterative and simple filtering technique, bilateral filtering has received considerable attention in areas such as image processing and computer vision. Unlike the conventional linear filters of which the coefficients are pre-determined, a bilateral filter adjusts its coefficients to the geometric closeness and photometric similarity of the pixels. Due to this ability to adapt, it has shown good performance at edge-preserving smoothing for image restoration applications, such as noise reduction and digital coding artifacts reduction.

However, it has been difficult to optimize a bilateral filter to obtain desired effect by supervised training or otherwise. Previous approaches to bilateral filtering have used a Gaussian function to relate coefficients to the geometric closeness and photometric similarity of the pixels. However, this approach is somewhat arbitrary and can be inadequate for various applications. Moreover, while coefficients used for linear filters can be adjusted to achieve desirable effects, such adjustment has been challenging.

These and other limitations present challenges to image creation and related applications.

The present invention is directed to overcoming the above-mentioned challenges and others, as may be related to applications including those discussed above. These and other aspects of the present invention are exemplified in a number of illustrated implementations and applications, some of which are shown in the figures and characterized in the claims.

Various embodiments of the present invention are directed to image data processing to reduce or eliminate undesirable image characteristics, using a transformation or filter function together with information about the image data.

According to an example embodiment, pixel data is generated for a target pixel of an image. Sample pixel data, from a set of sample pixels for the image, is transformed as a function of photometric similarity of the sample pixels. The transformed sample pixel data is used to generate and output pixel data for the target pixel.

In some applications, the sample pixel data is transformed using a trained bilateral filter with filter coefficients determined for a classification of image data under which the sample pixel data falls. The filter coefficients are determined using an original image and a corrupted version of the original image. The corrupted version is processed with the original image to determine a desirable coefficient for a particular class of image data under which the original and corrupted images fall. Desirable coefficients are determined for different types or classifications of image data and used in subsequent transformation (e.g., filtering) of different image data.

In another example embodiment of the present invention, artifacts in image data are filtered. Coding artifacts and image edges in image data are classified and a predetermined filter coefficient is selected in response to the classification. The image data is processed with a bilateral filter function that uses the predetermined filter coefficient to generate output image data.

The above summary is not intended to describe each illustrated embodiment or every implementation of the present invention. The figures and detailed description that follow more particularly exemplify these embodiments.

The invention may be more completely understood in consideration of the following detailed description of various embodiments of the invention in connection with the accompanying drawings, in which:

FIG. 1 shows a flow diagram for an approach to image processing, according to an example embodiment of the present invention;

FIG. 2 shows a flow diagram for an approach to image processing, according to another example embodiment of the present invention;

FIG. 3 shows a block diagram for an image for an image filtering approach, according to another example embodiment of the present invention; and

FIG. 4 shows a block diagram for a training procedure for an image processing approach, according to another example embodiment of the present invention.

While the invention is amenable to various modifications and alternative forms, specifics thereof have been shown by way of example in the drawings and will be described in detail. It should be understood, however, that the intention is not to limit the invention to the particular embodiments described. On the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the appended claims.

The present invention is believed to be applicable to a variety of imaging and image processing approaches. While the present invention is not necessarily limited to such applications, an appreciation of various aspects of the invention is best gained through a discussion of examples in such an environment.

In connection with various example embodiments of the present invention, an image filtering or transformation function is used to process image data to reduce or remove undesirable characteristics in the image data. In some applications, the image filtering function exhibits characteristics of a bilateral filter with offline optimization (training) such as Least Mean Square optimization, and is thus referred to as a trained bilateral filter. In this context, the term optimize generally refers to an approach involving the selection of desirable image processing (e.g., filtering) characteristics and may not necessarily involve any determination of best or optimum characteristics. The bilateral filter function is implemented with a variety of different types of image data, such as JPEG and MPEG4 image data, and used with H.264/MEPG4 AVC deblocking for image processing approaches that involve artifact reduction (or mitigation) and the preservation of image edges.

According to another example embodiment, a trained bilateral filter uses a linear combination of spatially ordered and rank ordered pixel samples (i.e., pixel data). The rank-ordered pixel samples are transformed to reflect photometric similarity of the pixels. Consequently, the trained bilateral filter possesses characteristics of an original bilateral filter while facilitating filter coefficient optimization. In some applications, coefficients for the combined pixel samples can be obtained by Least Mean Square optimization as the linear filters.

Various embodiments are directed to the use of a trained bilateral filter to reduce coding artifacts for image data created using JPEG and/or H.264/MEPG4-AVC standards. In these applications, local image structure information is utilized for classifying coding artifacts and true image edges. For instance, where a particular pixel or set of pixels is filtered, local image structure refers to adjacent pixels. A trained bilateral filter, trained or optimized for classes of image data (e.g., data that is classed according to a likelihood of the data including artifact-type characteristics), is used to reduce or remove coding artifacts and preserve true image edges. Desirable filter coefficients are obtained by training the filters on original images and their compressed versions, effectively via processing of image data from the compressed versions with different filter coefficients to identify coefficients that produce desirable results.

Turning now to the figures, FIG. 1 shows a flow diagram for an approach to generating pixel data for a target pixel of an image, according to another example embodiment of the present invention. At block 110, sample pixel data is transformed from a set or aperture of sample pixels for the image as a function of photometric similarity of the sample pixels. This transformation (processing) may involve, for example, filtering artifacts from the pixel data using a filter function with filtering coefficients that correspond with a type or class of the pixel data as optionally classified, for example as shown at block 105 before (or during) the transformation at block 110. At block 120, the transformed sample pixel data is used to generate and output pixel data for the target pixel. These steps may be repeated across a multitude of pixels for an image to generate output pixel data that can be used to reconstruct a corrected or filtered version of the image.

In some embodiments, the transformation at block 110 includes using a membership function to transform sample pixel data for each pixel in the sample pixels. At block 120, the transformed sample pixel data is used to generate pixel data as follows. A vector with the transformed sample pixel data is generated and concatenating with a vector including the sample pixel data (i.e., prior to transformation) arranged by spatial order. The concatenated vectors are weighted to generate pixel data for the target pixel.

FIG. 2 shows another flow diagram for processing JPEG or MPEG-type image data, according to another example embodiment of the present invention. At block 210, local image structure data is used to classify coding artifacts and true image edges for pixel data to be corrected. At block 220, filter coefficients are determined by training filter functions on original images and compressed versions of the original images. This training approach generally involves processing image data that has been compressed (and, correspondingly, exhibits artifacts) with different filters or filtering coefficients and comparing the results with an original image to determine a desirable filter function or filter coefficient for a set filter function. Further, this training approach may involve determining different filter coefficients for different classes of image data (i.e., classed relative to characteristics of the image data), and in turn using filters with a particular set of image data according to the characteristics and classification of the set of image data. In these contexts, it should be noted that, for various embodiments, the steps at block 220 are performed prior to classifying local image structure data at block 210.

At block 230, a bilateral filter trained with the determined filter coefficients is used to remove coding artifacts from the image data. This removal is generally achieved while preserving true edges; that is, edges that are part of an image are preserved, relative to artifact-based edges. The filtered image data is then output at block 240 for use in a variety of applications.

A variety of filter functions (e.g., software-implemented functions) are used to process image data in accordance with different example embodiments of the present invention. The following describes an example approach to filter-based processing of image data. Using X=(x₁, x₂, . . . , x_(N))^(T) as a vector containing n pixels arranged by the spatial order within a filter aperture, the output y_(b) of a bilateral filter is defined by:

$\begin{matrix} {{y_{b} = \frac{\sum\limits_{i = 1}^{N}{x_{i} \cdot {c\left( {x_{i},x_{c}} \right)} \cdot {s\left( {x_{i},x_{c}} \right)}}}{\sum\limits_{i = 1}^{N}{{c\left( {x_{i},x_{c}} \right)} \cdot {s\left( {x_{i},x_{c}} \right)}}}}{{s\left( {x_{i},x_{c}} \right)} = {\exp \left\lbrack {{{- \left( {x_{c} - x_{i}} \right)^{2}}/2}\sigma_{s}^{2}} \right\rbrack}}{{c\left( {x_{i},x_{c}} \right)} = {\exp \left\lbrack {{{- {d\left( {x_{c},x_{i}} \right)}^{2}}/2}\sigma_{c}^{2}} \right\rbrack}}{{i = 1},2,\ldots \mspace{14mu},{N.}}} & (1) \end{matrix}$

where d(x_(c), x_(i)) is the Euclidean distance between the pixel position of x_(i) and x_(c).

The output y_(l) of a linear filter is:

y_(l)=W^(T)X.  (2)

where W is an N×1 vector of weights. Consequently, the linear filter considers the geometric closeness of the pixel samples.

To include the rank order information, samples in the vector X are ordered according to their rankings and the vector X_(r)=(x₍₁₎, x₍₂₎, . . . , x_((N)))^(T) is obtained. The concatenation of X and Xr gives a vector X_(h) and the output of the hybrid filter y_(h) is:

y_(h)=W_(h) ^(T)X_(h).  (3)

where W_(h) is an 2N×1 vector of weights.

Similarity information is incorporated using the vector X_(s)=(x_([1]), x_([2]), . . . , X_([N]))^(T) by sorting the pixels according to their pixel value distance to a spatially central pixel x_(c) in an aperture (e.g., in a group of sample pixels used in generating pixel data for a central output pixel). The ordering is defined by:

|X _([i+1]) −x _(c) |≦|x _([i]) −x _(c) |, i=1, 2, . . . , N.  (4)

The vector X_(s) is transformed into X_(s′)=(x_([1]′), . . . , x_([2]′), . . . , x_([N]′))^(T). The transform is defined as:

x _([i])′=μ(x _(c) ,x _([i]))·x _(c)+(1−μ(x _(c) ,x _([i])))·x _([i]) , i=1, 2, . . . , N.  (5)

where μ(x_(c), x_([i])) is a membership function between x_([i]) and x_(c). The membership function is defined as:

$\begin{matrix} {{\mu \left( {x_{c},x_{\lbrack i\rbrack}} \right)} = {{{MIN}\left( {\frac{{x_{\lbrack i\rbrack} - x_{c}}}{K},1} \right)}.}} & (6) \end{matrix}$

where K is a pre-set constant. Other membership functions such as a Gaussian function are implemented for various embodiments. The vector X_(tb) is obtained by concatenating the vectors X and X_(r)′:

X _(tb)=(x ₁, x₂ , . . . , x _(n) , x _([1]′) , x _([2]′) , . . . , x _([N]′))^(T).  (7)

Similar to the linear filter, the output of the proposed trained bilateral filter is:

y_(tb)=W_(h) ^(T)X^(tb).  (8)

where W_(tb) is an 2N×1 vector of weights. Using this trained bilateral filter approach, in the presence of true image structures, the weights of the transformed samples that are similar to the center sample value are increased to better preserve edges, yet the weight of a linear part of the output can be adjusted accordingly (e.g., when low-pass filtering is needed to suppress the blocking artifacts). In some regards, the trained bilateral filter function processes data in accordance with an original bilateral filter function with coefficients that are continuously dependent on the spatial and intensity difference of pixels being processed.

An optimization (or desirable processing parameters) of the trained bilateral filter can be accomplished in a similar fashion as for a linear filter. For instance, the output of the trained bilateral filter y_(tb)(t)=W^(T) _(tb)X_(tb)(t) is used to estimate the desired signal d(t). Desirable or optimal filter coefficients are obtained when the mean square error between the output and desired signal is reduced or minimized. The mean square error MSE is:

MSE=E[(y _(tb)(t)−d(t))² ]=E[(W _(tb) ^(T) X _(tb)(t)−d(t))²].  (9)

Taking the first derivative with respect to the weights and setting it to zero gives:

W _(tb) ^(T) =E[X _(tb) X _(tb) ^(T)]⁻¹ E[X _(tb) d].  (10)

FIG. 3 shows a system 300 and approach to filtering image data to reduce or eliminate coding artifacts, according to another example embodiment of the present invention. Local image structure information is used to classify coding artifacts and true image edges. A diamond shaped filter aperture 310 is centered at an output pixel or target pixel, with data from surrounding pixels used to filter or process the pixel data to generate an output pixel 350. The local image structure within the filter aperture is first classified by Adaptive Dynamic Range Coding (ADRC) and local contrast information at block 320. At block 330, a look-up table (LUT) is used to look up filter coefficients to be used in trained bilateral filtering of pixel data for the aperture 310. Using the filter coefficients, the pixel data is processed or filtered at block 340 to calculate the output pixel 350. This approach can be repeated, sliding the filter aperture pixel by pixel over an entire image.

Local structure for a particular pixel being processed is classified using one or more of a variety of approaches, with the classification used to select a filter coefficient for filtering the pixel data. A 1-bit ADRC code of every pixel is defined by:

$\begin{matrix} {{{ADRC}\left( x_{i} \right)} = \left\{ \begin{matrix} {0,} & {{{if}\mspace{14mu} x_{i}} < \frac{x_{\max} + x_{\min}}{2}} \\ {1,} & {otherwise} \end{matrix} \right.} & (11) \end{matrix}$

where x_(i) is the value of pixels in the filter aperture and x_(max), x_(min) are the maximum and minimum pixel values in the filter aperture. An extra bit, DR, which includes contrast information in the aperture is added to the ADRC code. The extra bit is defined as:

$\begin{matrix} {{DR} = \left\{ \begin{matrix} {0,} & {{{{if}\mspace{14mu} x_{\max}} - x_{\min}} < {Tr}} \\ {1,} & {otherwise} \end{matrix} \right.} & (12) \end{matrix}$

where Tr is the pre-set threshold value related to the coding quantization. The concatenation of ADRC(x_(i)) of all pixels in the filter aperture and the extra bit DR gives the class code, used to address the coefficient look-up table. The number of classes given by ADRC code can be reduced by bit inversion to 2^(N-1). Together with the extra bit DR, the number of classes becomes 2^(N).

As discussed above, a variety of approaches may be used to set (or train) filtering function characteristics for certain applications, using coefficients (or other approaches) to suit filters to particular classes of image data. FIG. 4 shows an approach to training a filter function, according to another example embodiment. Original images (410) are used as a reference output image for a training set, and are compressed at 415 with an expected compression ratio to generate simulated (corrupt) input images (420). The simulated input and the reference output image pairs are collected pixel-by-pixel from the training material and are classified at 430 on the input (e.g., based upon the presence of edges in the data or otherwise, as discussed above). At 440, image pairs that belong to one specific class are used for the corresponding training, resulting in desirable (or optimal) coefficients for each particular class. These coefficients are stored in a look-up-table (LUT) 450, where they are available for use in processing data for a multitude of pixels.

Various embodiments of the present invention are applicable to use in connection with one or more approaches for image data processing as described in the following references, each of which is fully incorporated herein by reference:

-   [1] C. Tomasi and R. Manduchi, “Bilateral Filtering for Gray and     Color Images”, Proceedings of the 1998 IEEE International Conference     on Computer Vision, Bombay, India. -   [2] S. Wan, M. Mrak and E. Izquierdo, “Perceptually Adaptive Joint     Deringing Deblocking Filtering for Scalable Video Coding”, 2 nd     International Mobile Multimedia Communications Conference, Alghero,     Sardinia, Italy, September 2006. -   [3] H. Hu and G. de Haan, “Classification-based hybrid filters for     image processing”, Proceedings of SPIE, Visual Communications and     Image Processing, San Jose, USA, January 2006. -   [4]H. Hu and G. de Haan, “Simultaneous coding artifacts reduction     and sharpness enhancement”, IEEE International Conference on     Consumer Electronics, Las Vegas, USA, January 2007. -   [5] ITU-T Recommendation and International Standard of Joint Video     Specification (ITU-T Rec. H.264/ISO/IEC 14 496-10: 2005), December     2005. -   [6] T. Kondo, Y. Fujimori, S. Ghosal and J. J. Carrig, “Method and     apparatus for adaptive filter tap selection according to a class”,     U.S. Pat. No. 6,192,161 B1, Feb. 20, 2001. -   [7] A. Nosratinia, “Denoising of JPEG images by re-application of     JPEG,” Journal of VLSI Signal Processing, vol. 27, no. 1, pp. 6979,     2001.

The various embodiments described above and shown in the figures are provided by way of illustration only and should not be construed to limit the invention. Based on the above discussion and illustrations, those skilled in the art will readily recognize that various modifications and changes may be made to the present invention without strictly following the exemplary embodiments and applications illustrated and described herein. For example, different filtering parameters or coefficients may be used to filter image data, or different image data may be filtered using a similar approach (e.g., other aspects of JPEG, MPEG or related standards as implemented now or may be developed would be applicable for use in connection with various embodiments). Different membership functions may be used as well, including those suggested in the text above (e.g., a Gaussian function) as well as others. Such modifications and changes do not depart from the true spirit and scope of the present invention, including that set forth in the claims that follow. 

1. A method for generating pixel data for a target pixel of an image, the method comprising: transforming sample pixel data from a set of sample pixels for the image as a function of a classification of the pixels and photometric similarity of the pixels; and using the transformed sample pixel data to generate and output pixel data for the target pixel.
 2. The method of claim 1, wherein said classification is based upon a local image structure of the sample pixels, with different pixels in the image having different classifications, and the step of transforming includes transforming the sample pixel data with a filter function that uses a filter coefficient that is predetermined for the classification.
 3. The method of claim 1, further including classifying the sample pixels using local image structure of the sample pixels, wherein the steps of classifying, transforming and using are performed for a multitude of target pixels in the image.
 4. The method of claim 1, further including training a bilateral filter function by processing original input data to generate simulated input data, and using the simulated input data and the original input data to generate a filter coefficient for a class of pixel data under which the input data is classified, and determining said classification of the pixels by classifying the sample pixel data according to local image structure in the sample pixel data, wherein the step of transforming includes using the trained bilateral filter function with a filter coefficient for the classification of the sample pixel data to transform the sample pixel data.
 5. The method of claim 1, further including determining said classification of the pixels by classifying the sample pixels according to local image structure of the pixel data.
 6. The method of claim 1, wherein the step of transforming includes transforming the sample pixel data with a filter function that uses a filter coefficient that is determined using a minimization of a mean square error between an output of the filter function and a desired output.
 7. The method of claim 1, further including determining said classification of the pixels by classifying the sample pixel data using contrast information in the sample pixel data to detect artifacts.
 8. The method of claim 1, further including determining minimum and maximum pixel values for the sample pixels, and selecting a filter coefficient as a function of a difference between the minimum and maximum pixel values, wherein the step of transforming includes transforming the sample pixel data with a filter function that uses the selected filter coefficient.
 9. The method of claim 1, further including deriving a filter function coefficient for a pixel classification using a Least Mean Square optimization of a signal output from a filter function, wherein the step of transforming includes transforming sample pixel data having the pixel classification with a filter function that uses the derived filter coefficient.
 10. A method for generating pixel data for target pixels of an image, the method comprising, for each target pixel: transforming sample pixel data from a set of sample pixels for the image as a function of photometric similarity of the pixels and transformation coefficients specific to the target pixels, relative to other pixels in the image; and using the transformed sample pixel data to generate and output pixel data for the target pixel.
 11. The method of claim 10, wherein the step of transforming includes using a membership function to transform sample pixel data for each pixel in the sample pixels, and the step of using the transformed sample pixel data includes generating a vector with the transformed sample pixel data, concatenating the generated vector with a vector including the sample pixel data arranged by spatial order, and weighting the concatenated vectors to generate pixel data for the target pixel.
 12. The method of claim 10, wherein the step of transforming includes bilaterally filtering sample pixel data using a bilateral filtering function having coefficients defined as a function of spatial and intensity differences between the sample pixels and the target pixel.
 13. A method for filtering artifacts in image data, the method comprising: classifying coding artifacts and image edges in the image data; and selecting a predetermined filter coefficient in response to the classification; processing the image data with a bilateral filter function that uses the predetermined filter coefficient to generate output image data.
 14. The method of claim 13, prior to the step of classifying, further including for image data in at least two classes, processing image data having artifacts with the filter function and a filter coefficient to generate corrected image data, comparing the corrected image data to a standard for the image data, and repeating the steps of processing and comparing with different filter coefficients to determine a filter coefficient that produces desirable corrected image data, wherein the step of selecting a predetermined filter coefficient includes selecting a determined filter coefficient for a class of image data that corresponds to the classified coding artifacts and image edges.
 15. A computer-implemented system for generating pixel data for a target pixel of an image, the system comprising: a transforming function to transform sample pixel data from a set of sample pixels for the image as a function of a classification of the pixels and photometric similarity of the sample pixels; and a pixel data generator that uses the transformed sample pixel data to generate and output pixel data for the target pixel.
 16. The system of claim 15, wherein the transforming function transforms the sample pixel data using a predetermined filter function defined for the classification of the pixels.
 17. The system of claim 15, wherein said classification of the pixels is based upon a local image structure of the pixels, and the transforming function transforms the sample pixel data with a filter function that uses a filter coefficient that is predetermined for the classification.
 18. The system of claim 15, wherein the transforming function classifies the sample pixel data according to local image structure of the pixel data to determine said classification of the pixels, and transforms the sample pixel data with a filter function that uses a filter coefficient that is predetermined for the classification.
 19. The system of claim 15, wherein the transforming function transforms the sample pixel data with a filter function that uses a filter coefficient that is determined using a minimization of a mean square error between an output of the filter function and a desired output.
 20. The system of claim 15, wherein the transforming function classifies the sample pixel data using contrast information in the sample pixel data to detect artifacts, thereby determining said classification of the pixels, and transforms the sample pixel data with a filter function that uses a filter coefficient for the classification. 